package com.matt.domain.courseV2;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.matt.commons.model.Domain;
import com.tuo51.evaluate.domain.evaluatingV2.EvaluateV2Question;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@Data
@Entity
@Table(name = "tc_course_tool")
@EqualsAndHashCode(callSuper = true)
public class CourseTool extends Domain{

    @Column(columnDefinition = "varchar(50) COMMENT '道具名字' ")
    private String title;

    @Column(columnDefinition = "int default 1 COMMENT '道具數量'")
    private Integer count = 1;

    @Column(columnDefinition = "varchar(50) default '个' COMMENT '道具单位' ")
    private String unit;

    @Column(columnDefinition = "varchar(50) COMMENT '道具备注' ")
    private String comment;

    @Column(columnDefinition = "varchar(255) COMMENT '道具图片'")
    private String imgUrl = "";

    @Column(columnDefinition = "int default 1 COMMENT '道具图片数量'")
    private Integer imgCount = 1;

    @Column(columnDefinition = "varchar(255) COMMENT '推荐购买链接'")
    private String url;

    @Column(columnDefinition = "varchar(255) COMMENT '资源归属'")
    private String ascription;

    @Column(columnDefinition = "varchar(255) COMMENT '月龄阶段'")
    private String monthAge;

    @Column(columnDefinition = "varchar(255) COMMENT '教具应用'")
    private String application;

    @Column(columnDefinition = "varchar(255) COMMENT '教具应用类'")
    private String applicationType;

    @Column(columnDefinition = "varchar(255) COMMENT '教具类型'")
    private String type;

    @Column(columnDefinition = "varchar(32)  default '0'   COMMENT '父级ID' ")
    private String parentId = "0";

    @Column(columnDefinition = "varchar(255) COMMENT '封面'")
    private String cover;

    @Column(columnDefinition = "varchar(255) COMMENT '封面类型'")
    private String coverType;

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    private String createdBy;

    @Column(columnDefinition = "varchar(255)  COMMENT '创建人名称'")
    private String createdName;
}
